<template lang="pug">
  v-container
    v-card
      v-toolbar(color="purple darken-4" dark dense)
        v-toolbar-title 基本信息
        v-spacer
        v-toolbar-items
          v-btn(text @click="back") 返回
          v-btn(text @click="reset") 重置
          v-btn(text @click="save") 保存
      v-form(ref="form")
        v-container(grid-list-xl)
          v-layout(wrap)
            v-flex(xs12 md12)
              v-text-field(
                label="名称"
                v-model="data.name"
                :rules="[rules.required]"
              )
            v-flex(xs12 md12)
              v-textarea(label="描述" v-model="data.description")
</template>
<script lang="ts">
  import Vue, {VueConstructor} from 'vue'
  import FormValidateRulesMixin from '@/components/mixins/FormValidateRulesMixin'
  import AssetFormMixin from '@/components/mixins/AssetFormMixin'
  import {mapActions} from 'vuex'
  export default (Vue as VueConstructor<Vue & {

  }>).extend({
    props: ['asset'],
    mixins: [FormValidateRulesMixin, AssetFormMixin],
    methods: {
      ...mapActions('filterableBundle', {store: "update"})
    },
    data() {
      return {}
    }
  })
</script>